﻿using System;
using System.Windows.Forms;

namespace Zove.Desktop {

    public partial class ConsoleWindow : Form, IDesktopForm {

        //private static ConsoleWindow window = new ConsoleWindow();

        //public static ConsoleWindow Instance {
        //    get {
        //        return window;
        //    }
        //}

        public ConsoleWindow() {
            InitializeComponent();

            this.MdiParent = DesktopFormContext.Context.Main;
            TextBoxWriter writer = new TextBoxWriter(this.tecOutput);
            Console.SetOut(writer);
        }

        #region IDesktopForm Members

        public void Execute() {
            return;
        }

        public DigitalRune.Windows.TextEditor.TextEditorControl GetTextEditorControl() {
            return this.tecOutput;
        }

        public string GetFileName() {
            throw new NotImplementedException();
        }

        public string GetFileExtension() {
            throw new NotImplementedException();
        }

        public void Save(string fileName) {
            throw new NotImplementedException();
        }

        public string GetFileFilter() {
            throw new NotImplementedException();
        }

        public virtual string GetColouringScheme() {
            return string.Empty;
        }

        #endregion
    }
}
